import request from "@/utils/request";

export function addRoleMenu(data) {
    return request({
        url: '/system/role_menu/insert',
        method: 'post',
        data: data
    })
}

export function updateRoleMenu(data) {
    return request({
        url: '/system/role_menu/update',
        method: 'put',
        data: data
    })
}

export function getRoleMenu(roleId) {
    return request({
        url: '/system/role_menu/' + roleId,
        method: 'get'
    })
}
